package com.greenold.wechatpay.mapper;

import com.greenold.wechatpay.entity.Order;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;

/**
 * @author YueYang
 * Created on 2025/10/22 14:40
 * @version 1.0
 */
@Mapper
public interface WxPayMapper {


    /**
     * 插入订单
     *
     * @param order 订单对象
     * @return 影响行数
     */
    Integer insertOrder(Order order);


    /**
     * 根据用户id查询openId
     *
     * @param userId 用户id
     * @return openId
     */
    String selectOpenIdByUserId(Long userId);

}
